package com.lipl.springboot.service.impl;

import com.lipl.springboot.bean.User;
import com.lipl.springboot.mapper.UserMapper;
import com.lipl.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUserList(){
        return userMapper.getAll();
    }

    @Override
    public String sayHello(String name) {
        return name+"你好！！";
    }
}
